package com.PAT.practice01;

import java.util.Scanner;

public class 害死人不偿命的猜想 {

    public static void main(String[] args) {

        Scanner scanner = new Scanner(System.in);
        int i = scanner.nextInt();


        System.out.println(new 害死人不偿命的猜想().cutNum(i));


    }


    public int cutNum(int n){
        int count = 0;

        while (n>0&&n!=1){
            n = n%2!=0?(3*n+1)/2:n/2;
            count++;
        }

        return count;
    }
}




